package org.news.web.domain.bo;

import org.news.web.domain.History;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

import java.util.Date;

/**
 * 历史记录业务对象 history
 *
 * @author Gu Ci
 * @date 2024-04-03
 */
@Data
@AutoMapper(target = History.class, reverseConvertGenerate = false)
public class HistoryBo {

    /**
     * 历史记录ID
     */
    @NotNull(message = "历史记录ID不能为空", groups = { EditGroup.class })
    private Long historyId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    private String username;

    /**
     * 新闻ID
     */
    @NotNull(message = "新闻ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long newsId;

    /**
     * 操作时间
     */
//    @NotNull(message = "操作时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date actionTime;

    /**
     * 创建时间
     */
//    @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date creationTime;


}
